﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TaobaoERP.Core.Common;
using Microsoft.Practices.EnterpriseLibrary.PolicyInjection;
namespace TaobaoERP.BusinessTaobao.Common
{
    [AttributeUsage(AttributeTargets.Method)]
    public class AlisoftAPIAttribute : HandlerAttribute
    {
        
        public AlisoftAPIAttribute()
        {
            //Result();

        }

        private int _apiType = 1;

        /// <summary>
        /// API调用级别
        /// </summary>
        public int apiType
        {
            get { return _apiType; }
            set { _apiType = value; }
        }

        private string _apiname;
        public string apiname { get; set; }

        public override ICallHandler CreateHandler()
        {
            return new AlisoftICallHandler() { apiType = _apiType };

        }
    }
}
